package com.yangfei.mystudy1020.animation;

import android.content.Context;

import com.yangfei.mystudy1020.animation.AnimActivity.LaunchRocketValueAnimatorAnimationAnimationActivity;
import com.yangfei.mystudy1020.animation.AnimActivity.NoAnimationActivity;
import com.yangfei.mystudy1020.animation.AnimActivity.RotateRocketAnimationActivity;
import com.yangfei.mystudy1020.animation.AnimActivity.SpringBasicActivity;
import com.yangfei.mystudy1020.animation.AnimActivity.SpringChainActivity;

import java.util.ArrayList;

public class AnimDataMap {
    public ArrayList<AnimData> animList = new ArrayList<>();
    Context mCtx;
    public AnimDataMap(Context ctx){
        mCtx = ctx;
        addData("No animation", NoAnimationActivity.class);
        addData("Launch a rocket",LaunchRocketValueAnimatorAnimationAnimationActivity.class);
        addData("Spin a rocket",RotateRocketAnimationActivity.class);
        addData("Spring Basic",SpringBasicActivity.class);
        addData("Spring Chain",SpringChainActivity.class);
    }

    private void addData(String name,Class c){
        animList.add(new AnimData(name, c,mCtx));
    }
}
